﻿@using AP.Framework.Utilities.MvcPager
@model PagedList<AP.Framework.Infrastructure.Entities.sys_Users>
@{
    ViewBag.Title = "用户列表";
}
<div id="container" class="ui-container">
    <div id="content" class="ui-content fn-clear" coor="default" coor-rate="0.02">
        <div class="ui-grid-21" coor="content">
            <div class="ui-grid-21 ui-grid-right record-tit" coor="title">
                <h2 class="ui-tit-page">
                    用户列表</h2>
                <div class="record-tit-amount">
                    <p>
                        总共有<span class="number">@(Model.Count)</span>条数据
                    </p>
                </div>
            </div>
            <!-- 过滤表单 -->
            <div class="ui-grid-21 ui-grid-right ui-form">
                <div class="ui-grid-21 ui-grid-right record-search">
                    <div id="J-advanced-filter-option" class="">
                        <div class="record-search-time fn-clear">
                            @using (Html.BeginForm("Index", "Users", FormMethod.Get))
                            {
                                <div class="ui-form-item ui-form-item-time">
                                    <label class="ui-form-label" for="J-start">
                                        名称：</label>
                                    <div class="ui-form-content">
                                        <input type="text" value="" name="SearchValue" class="ui-input search-keyword">
                                    </div>
                                    <div class="submit-time-container ">
                                        <div class="submit-time ui-button ui-button-sorange">
                                            <input type="submit" class="ui-button-text" id="J-submit-time" value="查 找">
                                        </div>
                                    </div>
                                </div>
                            }
                        </div>
                    </div>
                </div>
                <!-- .record-search -->
            </div>
        </div>
        <div class="ui-grid-21 ui-grid-right fn-clear" id="J-table-consume" coor="consumelist">
            <div class="ui-tab">
                <div class="ui-tab-trigger">
                    <ul class="fn-clear">
                        <li class="ui-tab-trigger-item ui-tab-trigger-item-current"><a class="ui-tab-trigger-text">
                            用户列表</a></li>
                    </ul>
                </div>
                <div class="ui-tab-container" id="myScene">
                    <div class="ui-tab-container-item ui-tab-container-item-current">
                        <div class="amount-scheme-a fn-clear">
                            <div class="fn-left">
                            </div>
                            <div class="fn-right">
                                <div class="submit-time ui-button ui-button-sorange">
                                    @Html.ActionLink("新增用户", "Add", "Jobs", new { @class = "ui-button-text" })
                                </div>
                            </div>
                        </div>
                        <table id="tradeRecordsIndex" class="ui-table">
                            <thead>
                                <tr>
                                    <th class="info">
                                        用户名
                                    </th>
                                    <th class="info">
                                        密码
                                    </th>
                                    <th class="info">
                                        邮箱
                                    </th>
                                    <th class="info">
                                        创建时间
                                    </th>
                                    <th class="action">
                                        操作
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var list in Model)
                                {
                                    <tr>
                                        <td class="info">
                                            @list.UserName
                                        </td>
                                        <td class="info">
                                            @list.Password
                                        </td>
                                        <td class="info">
                                            @list.Email
                                        </td>
                                        <td class="info">
                                            @(string.Format("{0:yyyy-MM-dd}", list.CreateTime))
                                        </td>
                                        <td class="action">
                                            @Html.ActionLink("编辑", "Edit", new { @userId = list.ID })
                                            @Html.ActionLink("删除", "Delete", new { @userId = list.ID })
                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                    <div class="fn-clear">
                        <div class="page page-nobg fn-right">
                            <span class="page-link">
                                @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "page" })
                            </span>
                        </div>
                        <!-- /分页 -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
